package com.elitel.frame.base.controller;

import com.elitel.frame.base.service.Server2CacheService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author mulis
 */
@RestController
@RequestMapping("/system/server2Cache")
public class Server2CacheController {

    @Resource
    private Server2CacheService server2CacheService;

    @RequestMapping("/refresh")
    public String saveServerInfo2Cache() {
        server2CacheService.saveServerInfo2Cache();
        server2CacheService.saveAppInfo2Cache();
        server2CacheService.saveAppServerInfo2Cache();
        return "success";
    }


}
